<%@ page import="com.kuang.pojo.People" %><%--
  Created by IntelliJ IDEA.
  User: GW6666
  Date: 2020-02-29
  Time: 20:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
//    People people = new People();
%>
<jsp:useBean id="people" class="com.kuang.pojo.People" scope="page"/>


<jsp:setProperty name="people" property="address" value="西安"></jsp:setProperty>
<jsp:setProperty name="people" property="age" value="3"></jsp:setProperty>
<jsp:setProperty name="people" property="name" value="小狂神"></jsp:setProperty>
<jsp:setProperty name="people" property="id" value="1"></jsp:setProperty>


id：<jsp:getProperty name="people" property="id"/>
姓名：<jsp:getProperty name="people" property="name"/>
年龄：<jsp:getProperty name="people" property="age"/>
地址：<jsp:getProperty name="people" property="address"/>
</body>
</html>
